@extends('layouts.master')
@section('head')
	@parent
	<title>FACT - Gallery</title>	
@stop

@section('content')		
	<div class="main">
		<div class="shop_top">
			<div class="container">
				<div class="row ex_box">
					@if(Auth::user()->first_name == 'Admin')
						<div class="container" style="margin-top: -30px;">
							<div class="col-md-1" style="margin-left: -20px;">
								<button class="btn btn-primary"><a href="/gallery/create" style="color:white;">Create New Album</a></button>
							</div>
						</div>
					@endif	
					<br />

					<h3 class="m_2">albums</h3>
					@foreach ($albums as $album)
						<div class="col-md-4 team1" style="margin-bottom: 40px;">
							<div class="img_section magnifier2">
								<a class="fancybox" href="/gallery/{{$album->id}}" data-fancybox-group="gallery" title="{{$album->title}}"><img src="/images/11.jpg" class="img-responsive" alt=""><span> </span>
									<div class="img_section_txt">{{$album->title}}</div>
								</a>
							</div>
						</div>
					@endforeach
				</div>
			</div>
		</div>

	</div>
@stop